﻿/*
* 创建者：LIYINFAI
* 创建时间：2023/10/24 9:35:26
* 描述：
* --------------------------------------
* 修改说明：
* --------------------------------------
*/
using CommonLibrary.Forms;
using System.Drawing;

namespace CommonLibrary
{
    /// <summary>
    /// 插件接口
    /// </summary>
    public interface IPlugin
    {
        /// <summary>
        /// 执行插件方法
        /// </summary>
        /// <param name="pluginParam">参数</param>
        /// <returns></returns>
        string Excute(PluginParamEntity pluginParam);
        /// <summary>
        /// 描述
        /// </summary>
        string Description { get; }

        /// <summary>
        /// 返回一个窗体
        /// </summary>
        /// <param name="pluginParam"></param>
        /// <returns></returns>
        HWFrmWithTitle GetForm(PluginParamEntity pluginParam);
        /// <summary>
        /// 返回一个Icon
        /// </summary>
        /// <returns></returns>
        Bitmap GetBitmap();
    }
}
